From: mjw@wray-m-3.hpl.hp.com Date: Thu, 30 Sep 2004 11:11:17 +0000 (+0000) Subject: bitkeeper revision 1.1159.90.2 (415be9d5hTw1zLV9fA-AYcekmwhMwg) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~17400^2~550^2~3^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=513a304d7ef388627749b84ef486e3539512e125;p=xen.git bitkeeper revision 1.1159.90.2 (415be9d5hTw1zLV9fA-AYcekmwhMwg) Discard devices early for local migrate. --- diff --git a/tools/python/xen/xend/XendMigrate.py b/tools/python/xen/xend/XendMigrate.py index 36929c8b15..9c235e8700 100644 --- a/tools/python/xen/xend/XendMigrate.py +++ b/tools/python/xen/xend/XendMigrate.py @@ -295,6 +295,11 @@ class XendMigrateInfo(XfrdInfo): eserver.inject('xend.domain.migrate', [ self.dominfo.name, self.dominfo.id, "begin", self.sxpr() ]) + # Special case for localhost: destroy all devices early. + if 0 and self.dst_host in ["localhost", "127.0.0.1"]: + self.dominfo.restart_cancel() + self.dominfo.cleanup() + #self.dominfo.destroy_console() xfrd.request(['xfr.migrate', self.src_dom, vmconfig,